<template>
	<page-body>
		<view class="page">
			<view class="flex benben-position-layout flex flex-wrap align-center sbdtail_flex_0_higd"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center justify-between flex-sub sbdtail_fd0_0_higd'>
					<view class='flex flex-wrap align-center sbdtail_fd0_0_c0_higd' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
						<text class='fu-iconfont2  sbdtail_fd0_0_c0_c0_higd'>&#xE794;</text>
					</view>
					<view class='flex flex-wrap align-stretch justify-center'>
						<text class='sbdtail_fd0_0_c1_c0_higd'>{{$t('设备详情')}}</text>
					</view>
					<view class='flex flex-wrap align-center justify-end sbdtail_fd0_0_c0_higd'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---flex布局flex布局开始-->
			<view class="flex benben-flex-layout flex-wrap align-center sbdtail_flex_1_higd">
				<image class='sbdtail_fd1_0_higd' mode="aspectFill" :src='infos.img_url'></image>
				<view class='flex flex-direction align-stretch sbdtail_fd1_1_higd'>
					<view class='flex flex-wrap align-center sbdtail_fd1_1_c0_higd'>
						<view class='flex flex-wrap align-center sbdtail_fd1_1_c0_c0_higd'>
						</view>
						<text class='sbdtail_fd1_1_c0_c1_higd'>{{$t('基本信息')}}</text>
					</view>
					<view class='flex flex-wrap align-center sbdtail_fd1_1_c1_higd'>
						<text class='sbdtail_fd1_1_c1_c0_higd'>{{$t('设备名称')}}</text>
						<text>{{infos.sbmc?infos.sbmc:'暂无'}}</text>
					</view>
					<view class='flex flex-wrap align-center sbdtail_fd1_1_c1_higd'>
						<text class='sbdtail_fd1_1_c1_c0_higd'>{{$t('设备类型')}}</text>
						<text>{{infos.sblx_name?infos.sblx_name:'暂无'}}</text>
					</view>
					<view class='flex flex-wrap align-center sbdtail_fd1_1_c1_higd'>
						<text class='sbdtail_fd1_1_c1_c0_higd'>{{$t('设备型号')}}</text>
						<text>{{infos.sbxh?infos.sbxh:'暂无'}}</text>
					</view>
					<view class='flex flex-wrap align-center sbdtail_fd1_1_c1_higd'>
						<text class='sbdtail_fd1_1_c1_c0_higd'>{{$t('是否监控点')}}</text>
						<text v-if=" infos.sfjkd=='1'">{{$t('是')}}</text><text
							v-if=" infos.sfjkd!='1'">{{$t('否')}}</text>
					</view>
					<view class='flex flex-wrap align-center sbdtail_fd1_1_c1_higd'>
						<text class='sbdtail_fd1_1_c1_c0_higd'>{{$t('设备状态')}}</text>
						<text>{{infos.sbzt_name?infos.sbzt_name:'暂无'}}</text>
					</view>
					<view class='flex flex-wrap align-center sbdtail_fd1_1_c1_higd'>
						<text class='sbdtail_fd1_1_c1_c0_higd'>{{$t('设备清晰度')}}</text>
						<text>{{infos.sbqxd_name?infos.sbqxd_name:'暂无'}}</text>
					</view>
					<view class='flex flex-wrap align-center sbdtail_fd1_1_c1_higd'>
						<text class='sbdtail_fd1_1_c1_c0_higd'>{{$t('生产商')}}</text>
						<text>{{infos.scs?infos.scs:'暂无'}}</text>
					</view>
					<view class='flex flex-wrap align-center sbdtail_fd1_1_c1_higd'>
						<text class='sbdtail_fd1_1_c1_c0_higd'>{{$t('工程商')}}</text>
						<text>{{infos.gcs?infos.gcs:'暂无'}}</text>
					</view>
					<view class='flex flex-wrap align-center sbdtail_fd1_1_c1_higd'>
						<text class='sbdtail_fd1_1_c1_c0_higd'>{{$t('维保商')}}</text>
						<text>{{infos.wbs?infos.wbs:'暂无'}}</text>
					</view>
					<view class='flex flex-wrap align-center sbdtail_fd1_1_c1_higd'>
						<text class='sbdtail_fd1_1_c1_c0_higd'>{{$t('安装地点')}}</text>
						<text>{{infos.azdd?infos.azdd:'暂无'}}</text>
					</view>
					<view class='flex flex-wrap align-center sbdtail_fd1_1_c1_higd'>
						<text class='sbdtail_fd1_1_c1_c0_higd'>{{$t('经度')}}</text>
						<text>{{infos.jd?infos.jd:'暂无'}}</text>
					</view>
					<view class='flex flex-wrap align-center sbdtail_fd1_1_c1_higd'>
						<text class='sbdtail_fd1_1_c1_c0_higd'>{{$t('纬度')}}</text>
						<text>{{infos.wd?infos.wd:'暂无'}}</text>
					</view>
				</view>
			</view>

			<!---flex布局flex布局结束-->


		</view>
	</page-body>
</template>
<script>
	import {
		validate
	} from '@/common/utils/validate.js'

	export default {
		components: {},


		data() {
			return {
				"info": {},
				/** aid【ID】
				 *   wd【纬度】
				 *   jd【经度】
				 *   azdd【安装地点】
				 *   wbs【维保商】
				 *   gcs【工程商】
				 *   scs【生产商】
				 *   sbqxd【设备清晰度】
				 *   sbzt【设备状态】
				 *   sfjkd【是否监控点】
				 *   sbxh【设备型号】
				 *   sblx【设备类型】
				 *   thumb【设备图片】
				 *   sbmc【设备名称】 **/
				"infos": {
					"sbmc": "",
					"thumb": "",
					"sblx": "",
					"sbxh": "",
					"sfjkd": "",
					"sbzt": "",
					"sbqxd": "",
					"scs": "",
					"gcs": "",
					"wbs": "",
					"azdd": "",
					"jd": "",
					"wd": "",
					"aid": "",
					"sbqxd_name": "",
					"sbzt_name": ""
				},
				"id": "1"
			};
		},
		computed: {

		},
		watch: {},
		onLoad(options) {
			let {
				id
			} = options
			if (id !== undefined) this.id = id
			this.getdx83ff5f6e0b66Func()
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//查询技防建设详情
			async getdx83ff5f6e0b66Func() {
				//请求方法
				//数据验证

				let datainfos = await this.$api.get(global.apiUrls.post683ff5f6e0b66, {
					aid: this.id
				});

				if (datainfos.data.code != 1) {
					this.$message.info(datainfos.data.msg);
					return
				}
				let infoinfos = datainfos.data;
				this.infos = infoinfos.data

			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #F8F8F8;
		background-size: 100% auto;

		.sbdtail_flex_1_higd {
			padding: 0rpx 32rpx 0rpx 32rpx;

			.sbdtail_fd1_0_higd {
				width: 100%;
				height: 386rpx;
				border-radius: 16rpx;
				margin: 16rpx 0rpx 16rpx 0rpx;
			}

			.sbdtail_fd1_1_higd {
				background: #FFFFFF;
				width: 100%;
				padding: 32rpx 24rpx 32rpx 24rpx;

				.sbdtail_fd1_1_c0_higd {
					margin: 0rpx 0rpx 32rpx 0rpx;

					.sbdtail_fd1_1_c0_c0_higd {
						background: #D32A29;
						width: 5rpx;
						height: 28rpx;
					}

					.sbdtail_fd1_1_c0_c1_higd {
						margin: 0rpx 0rpx 0rpx 12rpx;
						font-size: 32rpx;
						font-weight: 500;
					}
				}
			}
		}

		.sbdtail_fd1_1_c1_higd {
			line-height: 40rpx;
			margin: 0rpx 0rpx 24rpx 0rpx;
		}

		.sbdtail_fd1_1_c1_c0_higd {
			width: 200rpx;
			color: rgba(153, 153, 153, 1);
		}

		.sbdtail_flex_0_higd {
			width: 750rpx;
			height: 88rpx;
			overflow: hidden;
			z-index: 10;
			top: 0rpx;
			background: #fff;
			background-size: 100% auto !important;

			.sbdtail_fd0_0_higd {
				padding: 0rpx 32rpx 0rpx 32rpx;

				.sbdtail_fd0_0_c1_c0_higd {
					font-size: 36rpx;
					font-weight: 700;
					color: #333333;
					line-height: 50rpx;
				}
			}
		}

		.sbdtail_fd0_0_c0_higd {
			width: 120rpx;

			.sbdtail_fd0_0_c0_c0_higd {
				font-size: 36rpx;
				color: #333;
			}
		}
	}
</style>
